ntohs

ntohs converts a u_short in TCP/IP network byte order to host byte order.

Syntax

u_short WSAAPI ntohs(
    __in u_short netshort
);

Parameters

netshort

A 16-bit number in TCP/IP network byte order

Return Values

The value supplied in the netshort parameter with the byte order reversed.

IntervalZero.com | Support | Give Feedback